﻿using Appliaction.Dto.Pinv;
using Domain.Entitys.Pinv;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Appliaction.IAppServices.Pinv
{
    public interface IPbService
    {
        int GetPbCount(string Pb_code, string Vendor_name);//条件查询总条数

        List<Pb_details_Order> GetPbFyWhere(string Pb_code, string Vendor_name, int currentPage, int pageSize);//分页条件查询数据

        Task<int> PutPbDelete(PbDeleteDto pinv_Pb);//删除

        Task<List<Pinv_purwhsedetail>> Getpurwhsedetailwherecode(string code);// 根据采购订单编号查询明细

        public Task<int> PostPbAdd(PinvOrderPbDetailsDto<Pinv_Pb_AddDto> pinvOrderPbDetailsDto);//添加

        public Task<int> PutPodetails_Pb_PbdetailsUpdate(Po_Audit_Dto pinv_Po, List<Po_details_Audit_Dto> pinv_Details, Pb_Audit_Dto pinv_Pb, List<Pb_details_Audit_Dto> pinv_Purwhsedetail);//审核

        Task<int> PutPoUpdateAudit(Pb_Audit_Dtos pinv_pb);//根据id进行审核

        Task<int> PutPbUpdate(Pb_details_Update_Dto<PbUpdateDto> pbUpdateDtos);//修改

        List<Pb_details_Order> GetPbFyWhereinfo(string Pb_code, string Vendor_name, int currentPage, int pageSize);//分页条件查询数据(详情版)

        int GetPbCountinfo(string Pb_code, string Vendor_name);//条件查询总条数(详情版)
    }
}
